<%-- 
    Document   : supprimerClients
    Created on : 11 mai 2011, 12:01:12
    Author     : Mami
--%>

<%@page import="ecom.beans.session.EcomAdminRemote"%>
<%@page import="ecom.beans.session.EcomCustomerRemote"%>
<%@page import="javax.naming.InitialContext"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="style.css" rel="stylesheet" type="text/css" />
        <title>JSP Page</title>
    </head>
    <body>
        <h5><br>
                 Vous voulez vraiment supprimer le client numéro :
                      <%=request.getParameter("idUser") %> ? </h5>
        <form  action="">
            <% InitialContext ic = new  InitialContext ();
       EcomCustomerRemote customer = (EcomCustomerRemote) ic.lookup(EcomCustomerRemote.class.getName());
       EcomAdminRemote admin = (EcomAdminRemote) ic.lookup(EcomAdminRemote.class.getName()); //suppressionion d'un article
          if(request.getAttribute("MessSuppressionUser")!=null && request.getAttribute("IdUser")!=null){
         System.out.println("suppresssionnnnnnnnnn de  ");
         Long idsup = Long.parseLong((String)request.getAttribute("IdUser"));

         admin.deleteCustomer(idsup);

     %>

         
            <input type="hidden" name="action" value="SupprimeReponse">
            <input type="hidden" name="idrep" value=<%=request.getParameter("idclientS") %> >
            <input type="submit"  value="Annuler">
            <input type="submit"  value="Confirmer">
        </form>


    </body>
</html>
